package cn.iocoder.yudao.module.promotion.controller.admin.promotion.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 促销新增/修改 Request VO")
@Data
public class PromotionSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2681")
    private Long id;

    @Schema(description = "商品id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11745")
    @NotNull(message = "商品id不能为空")
    private Long productId;

    @Schema(description = "促销标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "促销标题不能为空")
    private String promoTitle;

    @Schema(description = "促销详情", example = "你说的对")
    private String promoDescription;


    @Schema(description = "1=可用, 0=不可用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "1=可用, 0=不可用不能为空")
    private Integer isActive;

}